/**
 * 背景控制器
 */
class loadingController extends Frame.MVC.Controller {
    view: loadingView;
    constructor() {
        super();
    }

    showProgress($loaded, $total) {
        this.view.progressLbl.text = `${$loaded}/${$total}`;
        this.view.progressMask.width = this.view.progressBar.width;
    }

    viewOpen(a,b,c,d) {
        console.log(a,b,c,d)
        this.view.progressLbl.text = "0/0";
        this.view.progressMask.width = 0;
    }
}